home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’93 / SCSIPatch / dcmds / ScsiInitRecord.c next >
Encoding:
C/C++ Source or Header  |  1992-06-14  |  1.3 KB  |  50 lines  |  [TEXT/MPS ]

  1. /*
  2.     ScsiInitRecord.c
  3.         Copyright Paul Baxter
  4.  
  5.    The following MPW commands will build the dcmd and copy it to the
  6.    "Debugger Prefs" file in the System folder. The dcmd's name in
  7.    MacsBug will be the name of the file built by the Linker.
  8.  
  9.    You must have the following object files in the "{Libraries}" directory:
  10.    dcmdGlue.a.o DRuntime.o put.c.o 
  11.    You must also have the folowing header files in the "{CIncludes}" directory:
  12.    dcmd.h put.h
  13.  
  14.            C ScsiInitRecord.c
  15.         Link "{Libraries}"dcmdGlue.a.o scsiinitrecord.c.o "{Libraries}"patchlib.a.o "{Libraries}"DRuntime.o  -o ScsiInitRecord
  16.         BuildDcmd ScsiInitRecord 103
  17.         Echo 'include "ScsiInitRecord";'    |    Rez -a -o "{systemFolder}Debugger Prefs"
  18. */
  19.  
  20. #include <Types.h>
  21. #include <Errors.h>
  22. #include <dcmd.h>
  23. #include <Patch.h>
  24.  
  25. pascal void CommandEntry (dcmdBlock* paramPtr)
  26. {
  27.     OSErr err;
  28.     
  29.     switch (paramPtr->request)
  30.         {
  31.         case dcmdInit:
  32.             break;
  33.  
  34.         case dcmdHelp:
  35.             dcmdDrawLine ("\pScsiInitRecord");
  36.             dcmdDrawLine ("\p   Set recording buffer pointer to start of buffer.");
  37.             break;
  38.  
  39.         case dcmdDoIt:
  40.             err = SCSIINITRECORD();
  41.             if (err == unimpErr) {
  42.                 dcmdDrawLine ("\pSCSI Patch not Installed.");
  43.             }
  44.             else {
  45.                 dcmdDrawLine ("\pRecording buffer pointer reset to start of buffer.");
  46.             }
  47.             break;
  48.         }
  49. } // CommandEntry
  50.